//
//  weChatAuthResult.m
//  test1
//
//  Created by gengzhangjia on 15/7/29.
//  Copyright (c) 2015年 gengzhangjia. All rights reserved.
//

#import "weChatAuthResult.h"

@interface weChatAuthResult ()
@property (nonatomic, strong) NSString *code;
@property (nonatomic, strong) NSString *state;
@property (nonatomic, strong) NSString *lang;
@property (nonatomic, strong) NSString *country;
@end

@implementation weChatAuthResult

- (NSString *) code
{
    return _code;
}

- (NSString *) state
{
    return _state;
}

- (NSString *) lang
{
    return _lang;
}

- (NSString *) country
{
    return _country;
}

- (void)parseResult:(BaseResp *)resp
{
    [super parseResult:resp];
    if(![resp isKindOfClass:[SendAuthResp class]])
    {
        return;
    }
    
    SendAuthResp *result =(SendAuthResp *)resp;
    self.code =result.code;
    self.state =result.state;
    self.lang =result.lang;
    self.country = result.country;
}
@end
